<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- 
            v-bind 动态设置 html 的标签属性 → src url title
            v-bind:src="imgUrl" -- 完整写法
            :src="imgUrl"       -- 简写
        -->
        <img v-bind:src="imgUrl" alt="">
        <img :src="imgUrl" :title="msg" alt="">
    </div>

    <script src="./js/vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                imgUrl: './imgs/10-01.png',
                msg: '你好啊，波仔'
            }
        })
    </script>

</body>

</html>